反向代理服务器和前向代理服务器
Contents
Introduction
对于代理的认识,很久都不是很清楚,这里是从网络收罗来的资料。
1.服务器
服务器无论是反向或是前向,拥有的功能是相同的,即:代表客户端从服务器获取资源。
我是根据WikiPedia理解的,链接如下:前向代理(和代理服务器是一个词条) 反向代理
2.区别
反向代理 作为与其相关的服务器的中间人 只返回给客户端该服务器的的资源
前向代理 作为与其相关的客户端的中间人 返回给客户端Internet上可获取的资源
以上理解同样来自wikiPedia,引文如下:
While a forward proxy acts as an intermediary for its (usually nearby) associated clients and returns to them resources accessible on the Internet, a reverse proxy acts as an intermediary for its (usually nearby) associated servers and only returns resources provided by those associated servers.